package com.dc.chat.controller;

import com.dc.chat.app.biz.FriendBiz;
import com.dc.chat.app.biz.FriendMessageBiz;
import com.dc.chat.entity.dao.FriendMessage;
import com.dc.chat.entity.to.ResponseBean;
import com.dc.chat.interceptor.security.Security;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/friendMessage")
public class FriendMessageController {
    @Resource
    FriendMessageBiz friendMessageBiz;
    @Security
    @PostMapping("/get")
    public ResponseBean<Map<String,List<FriendMessage>>> getFriendMessage(){
        return friendMessageBiz.getFriendMessage();
    }
}
